package com.star.uc.admin.contract.command;

import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 导入excel入参
 *
 * @author zhouhengzhe
 * @version 1.0
 * @date 2023/12/14 18:32
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class DemoImportExcelCommand {

    @Schema(description = "应用ID")
    @NotBlank(message = "应用ID不能为空")
    @ExcelProperty(value = "应用ID", index = 0)
    private String tenantId;

    @Schema(description = "年龄")
    @NotNull(message = "年龄不能为空")
    @ExcelProperty(value = "年龄", index = 1)
    private Integer age;

    @Schema(description = "名字")
    @NotBlank(message = "名字不能为空")
    @ExcelProperty(value = "名字", index = 2)
    private String name;
}
